package com.qf.service.impl;

import com.qf.entity.PaymentRecord;
import com.qf.entity.PaymentRecordDTO;
import com.qf.mapper.PaymentRecordMapper;
import com.qf.service.PaymentRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaymentRecordServiceImpl implements PaymentRecordService {


    @Autowired
    private PaymentRecordMapper paymentRecordMapper;


    @Override
    public List<PaymentRecord> findAll2(PaymentRecordDTO paymentRecordDTO) {
        return paymentRecordMapper.findAll2(paymentRecordDTO);
    }

    @Override
    public List<PaymentRecord> findAll() {
        return paymentRecordMapper.findAll();
    }
    @Override
    public boolean add(PaymentRecord paymentRecord) {
        return paymentRecordMapper.paymentRecordAdd(paymentRecord);
    }

    @Override
    public boolean deleteById(int id) {
        return paymentRecordMapper.deleteById(id);
    }

    @Override
    public boolean update(PaymentRecord paymentRecord) {
        return paymentRecordMapper.update(paymentRecord);
    }
}
